#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
int main()
{
    int n;
    scanf("%d\n", &n);
    while (n--)
    {
        char a[100];
        gets(a);
        if (strlen(a) < 6)
            printf("Your password is tai duan le.\n");
        else
        {
            int ch = 0, num = 0;
            for (int i = 0; a[i]; i++)
            {
                if (!((isdigit(a[i])) || isalpha(a[i]) || a[i] == '.'))
                {
                    printf("Your password is tai luan le.\n");
                    goto loop;
                }
                if (isdigit(a[i]))
                    num = 1;
                if (isalpha(a[i]))
                    ch = 1;
            }
            if (num && !ch)
                printf("Your password needs zi mu.\n");
            else if (ch && !num)
                printf("Your password needs shu zi.\n");
            else
                printf("Your password is wan mei.\n");
        loop:;
        }
    }
}
